using System.Text;
using CHEnhanceEfCore.Common;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace CHEnhanceEfCore.Controller
{
    /// <summary>
    /// author: chenhao
    /// </summary>
    public class LMCController : BaseApiController
    {
        [HttpGet("getLmcData")]
        public IActionResult getEleclockData()
        {
            var readAllText =
                global::System.IO.File.ReadAllText("/Users/guangzhouzhuolue/Desktop/donetProject/CHEnhanceEfCore/CHDotNetCli/Config/lmcData.json",Encoding.UTF8);
            var deserializeObject = JsonConvert.DeserializeObject<JObject>(readAllText);
            return new JsonResult(deserializeObject);
        }
    }
}